/**
 * Created with IntelliJ IDEA.
 * Description:输出闰年
 * User: zjc
 * Date: 2022-04-26
 * Time: 21:57
 */
public class prject {
    public static void main(String[] args){
        for (int i = 1000; i <= 2000; i++) {
            if (i % 400 == 0){
                System.out.println(i);
            }
            else if (i % 4 == 0 && i % 100 != 0) {
                System.out.println(i);
            }
        }
    }
}
